package com.ysstech.reportworld.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 报表世界字段校验规则
 * </p>
 *
 * @author lishuangliang
 * @since 2023-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("report_world_table_detail_standard_check")
public class TableDetailStandardCheck extends Model<TableDetailStandardCheck> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    /**
     * 字段名称
     */
    @TableField("COLUMN_NAME")
    private String columnName;

    /**
     * 字段中文名称
     */
    @TableField("COLUMN_CHINESE_NAME")
    private String columnChineseName;

    /**
     * 字段类型
     */
    @TableField("COLUMN_TYPE")
    private Integer columnType;

    /**
     * 字段长度
     */
    @TableField("COLUMN_LENGTH")
    private Integer columnLength;

    /**
     * 数字类型的时候小数位数
     */
    @TableField("COLUMN_DECIMAL")
    private Integer columnDecimal;

    /**
     * 是否可为空 1.是2否
     */
    @TableField("COLUMN_NULL")
    private Integer columnNull;

    /**
     * 默认值
     */
    @TableField("COLUMN_DEFAULT")
    private String columnDefault;

    /**
     * 主键1.主键，2非主键
     */
    @TableField("PRIMARY_KEY")
    private Integer primaryKey;

    @TableField("STATUS")
    private Integer status;

    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    @TableField("ADD_USER")
    private String addUser;

    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    @TableField("EDIT_USER")
    private String editUser;

    @TableField("DELETE_REASON")
    private String deleteReason;
    // 字段类型
    @TableField(exist = false)
    private String strColumnType;
    // 状态
    @TableField(exist = false)
    private String strStatus;

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
